package com.sfy.example.provider;


import com.sfy.core.example.RpcApplication;
import com.sfy.core.example.registry.LocalRegistry;
import com.sfy.core.example.service.VertxHttpServer;
import com.sfy.example.common.user.UserService;


/**
 * 简易服务提供者示例
 */
public class EasyProviderExample {
    public static void main(String[] args) {

        // RPC 框架初始化
        RpcApplication.init();
        /**
         * 注册服务
         */
        LocalRegistry.registry(UserService.class.getName(),UserServiceImpl.class);

        //提供服务
        VertxHttpServer server = new VertxHttpServer();
        server.doStart(8080);
    }
}
